<?php
include "common.php";
class Province extends Common{
	function __construct(){
		parent::__construct();		
	}
	function getAll(){
		$arrProvince = $this->Mprovince->getAll();
		echo json_encode($arrProvince);
	}
	function getById(){
		$id = $this->input->post('id');
		$arr = $this->Mprovince->getById($id);
		echo json_encode($arr);
	}
}
?>